﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Security.Policy;
using System.Web.Mvc;

namespace Zeenck.Models
{
    public class Basic
    {
        [HiddenInput(DisplayValue = false)]
        [Display(Name = "Username")]
        public String UserName { get; set; }

        public String Status { get; set; }

        [Display(Name = "Profile Picture")]
        [DataType(DataType.ImageUrl)]
        public Url Picture { get; set; }

        [Required]
        [Display(Name = "First Name")]
        public String FirstName { get; set; }

        [Required]
        [Display(Name = "Last Name")]
        public String LastName { get; set; }

        [HiddenInput(DisplayValue = false)]
        [Display(Name = "Name")]
        public String FullName { get { return String.Format("{0} {1}", FirstName, LastName); } }

        [Required]
        [DataType(DataType.EmailAddress)]
        public String Email { get; set; }

        [Required]
        public String Passion { get; set; }

        [Display(Name = "Other Interest(s)")]
        public IList<String> Interests { get; set; }

        [Display(Name = "Member Since")]
        [HiddenInput(DisplayValue = false)]
        public DateTime DateJoined { get; set; }
    }
}